//1.导入方式1，直接导入函数/变量
import {flag, sum} from "./a.js";
if(flag) {
    console.log("c.js");
}
console.log("c:sum from a", sum(10, 30));


//2.导入方式2，导入函数/类
import {mul, Person} from "./a.js";
console.log("c:mul from a", mul(10, 20));
var p =new Person();
p.run();


//3.全导入
import * as aaa from "./a.js";
console.log("c:sum from a by import *", aaa.sum(10, 30));
console.log("c:mul from a by import *", aaa.mul(10, 30));